﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_brws_swt : BasiCommand
    {
        [JsonProperty("by_type")]
        public string ByType { get; set; }

        [JsonProperty("by_content")]
        public string ByContent { get; set; }

        [JsonProperty("pageIndex")]
        public string PageIndex { get; set; }

        public wb_brws_swt()
        {
            FunctionType = "wb_brws_swt";
            OtherName = "切换框架";
            SuccessJump = -1;
            FailureJump = -1;
            ByType = "";
            ByContent = "flase"; // 注意此处的拼写，可能应该是 "false" 而不是 "flase"
            PageIndex = "0";
        }

        public  bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
